/**
Company: Sarkar software technologys
WebSite: http://www.sarkar.cn
Author: yeganaaa
Date : 5/20/18
Time: 9:12 PM
 */

package Cn.Sarkar.EntityDream.CoreEngine.RDBMS

import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.IDBEntity
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.IDBTable
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.IQueryContext
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.PipeLine.CorePipeLine
import java.sql.Connection

interface IDataContext : IQueryContext {
    val tables: Array<IDBTable>
    var pipeLine: CorePipeLine
    var connection: Connection
    val insertedIntities: HashMap<String, IDBEntity>


    fun closeConnection(): Boolean
    fun saveChanges(): Int
}